Skip to main content

Token Metadata by Id

Queries token metadata information for the specified token Id.

query Token($tokenId: String!) {
token {
token_metadata_by_id(token_id: $tokenId) {
coinDecimal
displayName
tokenId
description
image
price
}
}
}

Example

curl --request POST \
--header 'content-type: application/json' \
--url 'https://api.euclidprotocol.com/graphql' \
--data '{"query":"query Token($tokenId: String!) {\n token {\n token_metadata_by_id(token_id: $tokenId) {\n coinDecimal\n displayName\n tokenId\n description\n image\n price\n }\n }\n}","variables":{"tokenId":"usdt"}}'

Open in Playground

Return Fields

FieldTypeDescription
coinDecimalIntThe number of decimal places for the token.
displayNameStringThe display name of the token.
tokenIdStringThe unique identifier of the token.
descriptionStringA brief description of the token.
imageStringURL to an image representing the token.
priceFloatThe current price of the token in dollars.